package com.caocaog.market.data.transfer.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.caocaog.market.data.transfer.entity.MkSiteArea;
import com.caocaog.market.data.transfer.entity.MkSysUser;
import org.apache.ibatis.annotations.Param;

/**
 * @author liguang
 * @version 1.0.0
 * @Project jeecg-boot
 * @Package com.caocaog.market.data.transfer.mapper.xml
 * @ClassName MkSysUserMapper.java
 * @createTime 2021年11月16日 09:40:00
 * @Description TODO
 */
public interface MkSysUserMapper extends BaseMapper<MkSysUser> {
    /**
     * 查询mysql库中所有分站（代理商）用户信息
     * @return
     * */
    public IPage<MkSysUser> findAllSysUserByNow(Page<MkSysUser> page,MkSysUser mkSysUser);
    /**
     * 查询mysql库中所有分站（代理商）用户信息记录数
     * 该方法查询到的记录数应该和findAllSysUserByNow查询到的记录数是一样的
     * @return
     * */
    public int countForfindAllSysUserByNow(@Param("mkSysUser") MkSysUser mkSysUser);

    /**
     * 插入数据
     */
    public int insertSysUserForReplace(MkSysUser mkSysUser);
}
